package org.dev.home.api

import org.dev.hi.library.restful.HiCall
import org.dev.hi.library.restful.annotation.Field
import org.dev.hi.library.restful.annotation.GET
import org.dev.hi.library.restful.annotation.Path
import org.dev.home.model.GoodsList
/**
 * Author WenPing
 * CreateTime 2020/11/15.
 * Description: 获取商品信息
 */
interface GoodsApi {
    @GET("goods/goods/{categoryId}")
    fun queryCategoryGoodsList(
        @Path("categoryId") categoryId: String,
        @Field("subcategoryId") subcategoryId: String,
        @Field("pageSize") pageSize: Int,
        @Field("pageIndex") pageIndex: Int
    ): HiCall<GoodsList>
}